PROG = xpaintcolored
SRC  = ${PROG}.c
OBJ  = ${SRC:.c=.o}

CC = cc
INCS = -I/usr/include/X11 `pkg-config --cflags xft`
LIBS = -lX11 -lXft

CFLAGS = -Wall -Wextra -O0 ${INCS}
LDFLAGS = ${LIBS}

all: ${PROG}

${PROG}: ${OBJ}
	${CC} ${LDFLAGS} $< -o $@

.c.o:
	${CC} -c ${CFLAGS} $<

clean:
	-rm ${OBJ}

.PHONY: all clean
